<?php
	class dathangchitietbs{
		public $MaDatHang = 0;
		public $SoLuong = "";
		public $MaChiTiet = 0;
		public function Add()
		{
			$db = new dathangchitietdb();
			return $db->Add($this->MaDatHang, $this->MaSanPham, $this->SoLuong);
		}
		
		public function Delete()
		{
			$db = new dathangchitietdb();
			return $db->Delete($this->MaDatHang);
		}
		
		public function Update()
		{
			$db = new dathangchitietdb();
			return $db->Update($this->MaChiTiet, $this->SoLuong);
		}
		
		public function GetList()
		{
			$db = new dathangchitietdb();
			return $db->GetList($this->MaChiTiet, $this->MaDatHang, $this->SoLuong);
		}
		public function Find()
		{
			$db = new dathangchitietdb();
			return $db->Find($this->MaChiTiet, $this->MaDatHang, $this->SoLuong);
		}
	}

?>